package com.junlaninfo;

/**
 * Created by 辉 on 2020/9/13.
 * 测试锁的重入性
 */
public class Thread011 {
    public  static synchronized void a() {
        System.out.println("我是a方法");
        b();
    }

    private static synchronized void b() {
        System.out.println("我是经a方法进来的b方法");
    }

    public static void main(String[] args) {
        a();
    }
}
